#import <Realm/Realm.h>
@class ZKReadData,ZKReadMedia,ZKReadTplMedia,ZKReadTplMedia,RLMString;

RLM_ARRAY_TYPE(ZKReadData)
RLM_ARRAY_TYPE(ZKReadMedia)
RLM_ARRAY_TYPE(ZKReadTplMedia)
RLM_ARRAY_TYPE(RLMString)


@interface ZKReadModel : RLMObject

@property (nonatomic, strong) ZKReadData * data;
@property (nonatomic, strong) NSString * msg;
@property (nonatomic, strong) NSString * stat;

-(instancetype)initWithDictionary:(NSDictionary *)dictionary;

-(NSDictionary *)toDictionary;
@end


@class ZKReadTplMedia;

@interface ZKReadData : RLMObject

@property (nonatomic, strong) ZKReadModel * zKReadModel;
@property (nonatomic, strong) NSString * adUrl;
@property (nonatomic, strong) NSString * content;
@property (nonatomic, strong) NSString * contentFormat;
@property (nonatomic, strong) NSString * disclaimer;
@property (nonatomic, strong) RLMArray<RLMString> * jsRef;
@property (nonatomic, strong) RLMArray<ZKReadMedia> * media;
@property (nonatomic, strong) NSString * pk;
@property (nonatomic, strong) RLMArray<ZKReadTplMedia> * tplMedias;

-(instancetype)initWithDictionary:(NSDictionary *)dictionary;

-(NSDictionary *)toDictionary;
@end

@interface ZKReadTplMedia : RLMObject

@property (nonatomic, strong) ZKReadData * zKReadData;
@property (nonatomic, strong) NSString * h;
@property (nonatomic, strong) NSString * idField;
@property (nonatomic, strong) NSString * mUrl;
@property (nonatomic, strong) NSString * minUrl;
@property (nonatomic, strong) NSString * rawUrl;
@property (nonatomic, strong) NSString * target;
@property (nonatomic, strong) NSString * type;
@property (nonatomic, strong) NSString * url;
@property (nonatomic, strong) NSString * w;

-(instancetype)initWithDictionary:(NSDictionary *)dictionary;

-(NSDictionary *)toDictionary;
@end

@interface ZKReadMedia : RLMObject

@property (nonatomic, strong) ZKReadData * zKReadData;
@property (nonatomic, strong) NSString * h;
@property (nonatomic, strong) NSString * idField;
@property (nonatomic, strong) NSString * mUrl;
@property (nonatomic, strong) NSString * minUrl;
@property (nonatomic, strong) NSString * rawUrl;
@property (nonatomic, strong) NSString * type;
@property (nonatomic, strong) NSString * url;
@property (nonatomic, strong) NSString * w;

-(instancetype)initWithDictionary:(NSDictionary *)dictionary;

-(NSDictionary *)toDictionary;
@end

@interface RLMString : RLMObject

-(instancetype)initWithString:(NSString*)string;
@property (nonatomic, strong) NSString * value;

@end
